from django.apps import AppConfig


class DemoConfig(AppConfig):
    default_auto_field = "django.db.models.BigAutoField"
    name = "demo"

    # 项目启动后台线程自动循环逻辑
    def ready(self):
        from .utils.stream_processor import start_background_threads
        start_background_threads()